<script setup lang="ts">
  import { useModeModalBinder } from '@/hooks/arco/useModeModalBinder';

  const editModal = useModeModalBinder({
    modes: ['edit', 'add', 'detail'] as const,
    renderTitle() {
      return '编辑布放信息';
    },
    onShow() {},
    async onOkClick() {},
  });

  defineExpose(editModal.expose);
</script>

<template>
  <a-modal v-bind="editModal.bindProps" width="700px">
    <div> 这是窗口内容 </div>
  </a-modal>
</template>

<style lang="less" scoped></style>
